{extend name="../application/public/base.html" /}
{block name="head"}
    <link rel="stylesheet" href="ADMIN_CUSTOM/css/btn.css">
    <link rel="stylesheet" href="ADMIN_CUSTOM/css/form.css">
{/block}
{block name="body"}
    <body>
        <div class="x-nav">
			<span class="layui-breadcrumb">
				<a href="">首页</a>
				<a href="">演示</a>
				<a><cite>导航元素</cite></a>
			</span>
          	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
		<form class="layui-form" lay-filter="">
			<input type="hidden" name="repair_id" value="{:Request()->param('ids')}">
			<input type="hidden" name="repair_sn" value="{$row.repair_sn}">
			<ul class="form-btn">
				<li><div class="layui-btn" lay-submit lay-filter="update">保存</div></li>
		  	</ul>
	        <div class="layui-fluid">
	            <div class="layui-row layui-col-space15">
	                <div class="layui-col-md12">
	                    <div class="layui-card">
	                        <div class="layui-card-body">
								<!-- 维修故障信息 start -->
								<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
								  	<ul class="order_table">
										<li>维修故障信息</li>
								  	</ul>
								  	<div class="layui-tab-content tab-content-form">
								  		<div class="tab-content-box">
								  			<span>
												<label>外观描述</label>
											 	<div class="layui-input-inline">
												  	<input type="text" onclick="xadmin.open('请选择外观描述','/repair/fault/index/ty/change_outward')" onfocus="this.blur();" name="wg_describe" autocomplete="off" class="layui-input" placeholder="请选中外观描述" value="{$row.wg_describe}">
											  	</div>
									     	</span>
									     	<span>
											 	<div class="layui-input-inline">
												  	<input type="text" placeholder="请输入其它外观描述" name="wg_write_describe" autocomplete="off" class="layui-input" value={$row.wg_write_describe}>
											  	</div>
									     	</span>
									     	<div onclick="xadmin.open('编辑外观描述','/repair/fault/index/ty/outward')" class="layui-btn">编辑外观描述</div>
								  		</div>
								  		<div class="tab-content-box">
								  			<span>
												<label>故障描述</label>
											 	<div class="layui-input-inline">
												  	<input type="text" onclick="xadmin.open('请选择故障描述','/repair/fault/index/ty/change_fault')" onfocus="this.blur();" placeholder="请选中故障描述" name="gz_describe" autocomplete="off" value="{$row.gz_describe}" class="layui-input">
											  	</div>
									     	</span>
									     	<span>
											 	<div class="layui-input-inline">
												  	<input type="text" placeholder="请输入其它故障描述" name="gz_write_describe" value="{$row.gz_write_describe}" autocomplete="off" class="layui-input">
											  	</div>
									     	</span>
									     	<div onclick="xadmin.open('编辑故障描述','/repair/fault/index/ty/fault')" class="layui-btn">编辑故障描述</div>
								  		</div>
									 	<span>
											<label>故障备注</label>
										 	<div class="layui-input-inline" style="width: 400px;min-width: 80px;">
											  	<input type="text" placeholder="请输入故障备注" name="gz_remarks" autocomplete="off" class="layui-input">
										  	</div>
								     	</span>
									 	<span>
											<label>处理方法</label>
										 	<div class="layui-input-inline" style="width: 400px;min-width: 80px;">
											  	<input type="text" placeholder="请输入处理方法" name="solutions" autocomplete="off" class="layui-input">
										  	</div>
								     	</span>
								  	</div>
								</div>
								<!-- 维修故障信息 end -->
								<!-- 维修配件 start -->
								<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
								  	<ul class="order_table">
										<li>维修配件</li>
										<div onclick="xadmin.open('增加维修配件','/repair/goods/change_goods/ty/edit')" class="layui-btn white-border-btn">增加维修配件</div>
								  	</ul>
								  	<div class="layui-tab-content tab-content-form">
								  		<table class="layui-table layui-form" id="repair-goods" lay-filter="list">
										  	
										</table>
								  	</div>
								  	<div class="tab-content-form" style="padding: 0 0 10px 0;">
							  			<span style="margin-left: 10px;">
											<label>配件费用（元）：</label>
											<input type="hidden" name="parts_money" value="{$row.parts_money}">
										 	<div class="layui-input-inline parts_money">{$row.parts_money}</div>
								     	</span>
								     	<span>
								     		<label>预计时长(天）：</label>
										 	<div class="layui-input-inline">
											  	<input type="text" placeholder="请输入预计天数" lay-verify="required|total_days" name="total_days" autocomplete="off" class="layui-input" value="{$row.total_days}">
										  	</div>
								     	</span>
							  		</div>
								</div>
								<!-- 维修配件 end -->
								<!-- 维修金信息 start -->
								<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
								  	<ul class="order_table">
										<li>维修金信息</li>
								  	</ul>
								  	<div class="layui-tab-content tab-content-form">
								  		<!-- <div class="tab-content-form">
								  			<span>
												<label>支付方式</label>
											 	<div class="layui-input-inline">
												  	<input type="radio" name="like1[write]" lay-skin="primary" title="现金支付">现金支付
							                        <input type="radio" style="margin-left: 30px;" name="like1[read]" lay-skin="primary" title="手机支付">手机支付
							                        <input type="radio" style="margin-left: 30px;" name="like1[write]" lay-skin="primary" title="银行卡支付">银行卡支付
											  	</div>
									     	</span>
								  		</div> -->
								  		<div class="tab-content-form">
								  			<span>
												<label>维修总金额（元）</label>
											 	<div class="layui-input-inline">
												  	<input type="text" placeholder="请输入维修总金额" name="repair_money" onchange="repair_money_fun()" autocomplete="off" class="layui-input" value="{$row.repair_money}" lay-verify="required|repair_money|actual_money">
											  	</div>
									     	</span>
									     	<span>
									     		<input type="hidden" name="actual_money" value="{$row.actual_money}">
									     		<label>已支付金额（元））</label>
											 	<div class="layui-input-inline">{$row.actual_money}</div>
									     	</span>
									     	<span>
									     		<input type="hidden" name="stay_money" value="{$row.stay_money}">
									     		<label>待支付金额（元）：</label>
											 	<div class="layui-input-inline stay_money">{$row.stay_money}</div>
									     	</span>
								  		</div>
								  		<div class="tab-content-form">
									     	<span>
									     		<label>配件费用（元）：</label>
											 	<div class="layui-input-inline parts_money">{$row.parts_money}</div>
									     	</span>
									     	<span>
									     		<input type="hidden" name="people_money" value="{$row.people_money}">
									     		<label>人工费用（元）：</label>
											 	<div class="layui-input-inline people_money">{$row.people_money}</div>
									     	</span>
								  		</div>
								  	</div>
								</div>
								<!-- 维修金信息 end -->
	                        </div>
	                    </div>
	                </div>
	            </div>
	        </div> 
	    </form>
    </body>
{/block}
{block name="script"}
	<script type="text/html" id="change-oper">
		<div class="layui-btn layui-bg-red" lay-event="cencel">取消</div>
    </script>
    <script type="text/html" id="number">
		<a class="layui-btn layui-btn-danger" lay-event="add_num">+</a>
		<span class="num">{{d.num}}</span>
		<a class="layui-btn layui-btn-danger" lay-event="cut_num">-</a>
    </script>
	<script type="text/javascript" src="ADMIN_CUSTOM/js/repair/repair_edit.js"></script>

{/block}